<template>
  <div class="head align-center space-between">
    <div class="head-bg-left pointer">
      {{ info.val2 || '' }}
    </div>
    <div class="title-item">{{ info.val1 || '' }}</div>
    <div class="head-bg-right flex-end">
      <clock />
      <span>{{ dateWeek }}</span>
      <span>26℃</span>
    </div>
  </div>
</template>

<script>
import Clock from '@/views/components/Clock/Clock'

export default {
  props: ['info'],
  components: { Clock },
  data() {
    return {
      dateWeek: null,
      weekday: ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
    }
  },
  mounted() {
    this.dateWeek = this.weekday[new Date().getDay()]
  },
  methods: {}
}
</script>

<style scoped lang="scss">
.head {
  height: 1.03rem;
  background-image: url('https://emindt-scheduling.oss-cn-hangzhou.aliyuncs.com/profile/personinfo/2023/6/20/lang1_6f9c554d85264771ab9d2bf58285a2d1.png');
  background-repeat: no-repeat;
  background-position-x: center;
  box-sizing: border-box;
  font-size: 0.45rem;

  .title-item {
    font-size: 0.4rem;
    font-weight: bold;
    color: #00cdff;
    margin-top: -0.2rem;
  }

  .head-bg-left {
    padding-left: 0.1rem;
    font-size: 0.18rem;
    color: #00ffff;
    line-height: 0.34rem;
    margin-top: 0.1rem;
    width: 5.77rem;
    height: 0.34rem;
    background: linear-gradient(90deg, rgba(0, 228, 255, 0.2), rgba(0, 228, 255, 0.02));
    margin-left: 0.2rem;
  }

  .head-bg-right {
    font-size: 0.18rem;
    color: #00ffff;
    line-height: 0.34rem;
    margin-top: 0.1rem;
    width: 5.77rem;
    height: 0.34rem;
    background: linear-gradient(to left, rgba(0, 228, 255, 0.2), rgba(0, 228, 255, 0.02));
    margin-right: 0.2rem;

    span {
      margin-right: 0.1rem;
    }
  }
}
</style>